/**
 * Copyright (C) 2010 Fred Faber.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.google.api.adwords.lib.security;

import java.io.FileDescriptor;
import java.net.InetAddress;
import java.security.Permission;
import java.util.logging.Logger;

/**
 *
 * @author penumbrousdotcom@gmail.com (Fred Faber)
 */
public class AlwaysAllowsSecurityManager extends SecurityManager {

  private static final Logger logger = 
      Logger.getLogger(AlwaysAllowsSecurityManager.class.getCanonicalName());

  @Override public void checkPermission(Permission perm) {
  }

  @Override public void checkPermission(Permission perm, Object context) {
  }

  @Override public void checkCreateClassLoader() {
  }

  @Override public void checkAccess(Thread t) {
  }

  @Override public void checkAccess(ThreadGroup g) {
  }

  @Override public void checkExit(int status) {
  }

  @Override public void checkExec(String cmd) {
  }

  @Override public void checkLink(String lib) {
  }

  @Override public void checkRead(FileDescriptor fd) {
  }

  @Override public void checkRead(String file) {
  }

  @Override public void checkRead(String file, Object context) {
  }

  @Override public void checkWrite(FileDescriptor fd) {
  }

  @Override public void checkWrite(String file) {
  }

  @Override public void checkDelete(String file) {
  }

  @Override public void checkConnect(String host, int port) {
  }

  @Override public void checkConnect(String host, int port, Object context) {
  }

  @Override public void checkListen(int port) {
  }

  @Override public void checkAccept(String host, int port) {
  }

  @Override public void checkMulticast(InetAddress maddr) {
  }

  @Override public void checkMulticast(InetAddress maddr, byte ttl) {
  }

  @Override public void checkPropertiesAccess() {
  }

  @Override public void checkPropertyAccess(String key) {
  }

  @Override public boolean checkTopLevelWindow(Object window) {
    return true;
  }

  @Override public void checkPrintJobAccess() {
  }

  @Override public void checkSystemClipboardAccess() {
  }

  @Override public void checkAwtEventQueueAccess() {
  }

  @Override public void checkPackageAccess(String pkg) {
  }

  @Override public void checkPackageDefinition(String pkg) {
  }

  @Override public void checkSetFactory() {
  }

  @Override public void checkMemberAccess(Class<?> clazz, int which) {
  }

  @Override public void checkSecurityAccess(String target) {
  }
}
